<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Insert title here</title>
    <include file="Public:easyui_res" />
    <script type="text/javascript" src="__PUBLIC__/highchart/highcharts.js"></script>
</head>
<body>
<div id="tb" style="padding:5px;height:auto;">
    <div style="margin: 10px 0 10px 10px" >
        <!-- form表单 指定id和name之后会自动带到服务器 -->
        <form name="searchform" method="get" action="" id ="searchform">


            下单时间从<input class="easyui-datebox" id="begin_dt"  name="begin_dt"  data-options="required:true,editable:false" ></input>

            到<input class="easyui-datebox" id="end_dt"  name="end_dt"  data-options="required:true,editable:false" ></input>

            <a href="javascript:void(0);" id="submit_search" class="easyui-linkbutton" iconCls="icon-search"  style="width:60px;height:32px;margin-left: 10px;">查询</a>
            <a onclick="Orderexport()"  class="easyui-linkbutton"  style="height:32px;margin-left: 10px;">导出Excel</a>

        </form>
    </div>
</div>
<!-- 展示数据部分 -->
<table id="dg"  style="width:100%; "  title="查询结果"
       data-options="rownumbers:true,
			singleSelect:true,
			pagination:true,
			ctrlSelect:true,
			fitColumns:true,
			loadMsg:'正在加载,请等待....',
			url:'__URL__/gh300_getList',
			method:'get',
			toolbar:'#tb',
			onLoadSuccess:function(data){ loaddgSuc(data);}
			">
    <thead>
    <tr>
        <volist name="table_title" id="vo"  >
            <th data-options="field:'{$key}',align:'center',width:'50px'">{$vo}</th>
        </volist>
    </tr>
    </thead>
</table>
<div id="msg" style="width: 100%;color: red;font-size: 14px;text-align: center;"></div>
<div id="container" style="min-width:700px;"></div>
<script>
    $(function(){
        //设置datetime控件时间
        var begin_time = "<?php echo date('Y-m-d',$begin_time)?>";
        var end_time = "<?php echo date('Y-m-d',strtotime('+1 day'))?>";
        $("#end_dt").datebox("setValue",end_time);
        $("#begin_dt").datebox('setValue',begin_time);
        $("#submit_search").click();
//	$('#container').highcharts({$json});
    })

    /**
     * 详情弹出窗
     * */
    function view_order_info(order_id){
        $.post(url+"/AlertInfo/order_view/"+order_id, "json=", function(data) {
            $.messager.alert('订单详情',data,'info');
            $(".messager-body").css("width","600px");
            $(".messager-window").css("width","600px");
            $(".window-header").css("width","600px");
            $(".messager-window").css("left","200px");
            $(".window-shadow").css("left","200px");
            $(".messager-button").css("display","none");
            $(".window-shadow").css("height","100px");
        });

    }
    function Orderexport(){
        window.location.href = url+"/OrderReservation/gh300_export/"+$("input[name='begin_dt']").val()+"/"+$("input[name='end_dt']").val();
    }

</script>
</body>
</html>